package com.dxysun.springboot.filter;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

//@WebFilter
//@Order(100)
public class DataFilter implements Filter
{
	private static final Log logger = LogFactory.getLog(DataFilter.class);

	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain)
			throws IOException, ServletException
	{
		logger.info("DataFilter 请求前");
		chain.doFilter(servletRequest, servletResponse);
		logger.info("DataFilter 请求后");
	}
}
